﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" ViewStateMode="Disabled" EnableViewState="false"
    CodeBehind="DoctorEdit.aspx.cs" Inherits="MedicWeb.forms.Editors.DoctorEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <style type="text/css">
        .style1
        {
            width: 55%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="DoctoEditPanel" runat="server" HorizontalAlign="Left" 
        style="text-align: center">
        <table>
            <tr>
                <td align="left" rowspan="8" valign="top">
                    <asp:Panel ID='printMenu' runat="server" CssClass="print" />
                </td>
                <td>
                    <strong>Личные данные</strong></td>
                
            </tr>
            <tr>
                <td style="text-align: left">
                    <asp:HyperLink ID="linkOrder" runat="server" Font-Bold="True">[linkOrder]</asp:HyperLink>
                    <table 
                        style="border: 1px solid #C0C0C0; width: 100%;">
                        <tr>
                            <td align="right">
                                №&nbsp;Договора
                            </td>
                            <td>
                                <asp:TextBox ID="tfContractNumber" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                Дата регистрации
                            </td>
                            <td>
                                <asp:TextBox ID="dataRegistration" runat="server" CssClass="date"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="4">
                                <table style="width: 100%;">
                                    <tr>
                                        <td>
                                            Фамилия
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="tfSurname" runat="server" ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                        <td>
                                            Имя
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="tfName" runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            Отчество
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="tfPatronymic" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Год рождения
                            </td>
                            <td>
                                <asp:TextBox ID="tfBornYear" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                Пол
                            </td>
                            <td>
                                <asp:DropDownList ID="comboSex" CssClass="nullable" runat="server" Width="100%">
                                    <asp:ListItem Value="0">Женщина</asp:ListItem>
                                    <asp:ListItem Value="1">Мужчина</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Ученая степень
                            </td>
                            <td>
                                <asp:DropDownList ID="comboDegree" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                Учёное звание
                            </td>
                            <td>
                                <asp:DropDownList ID="comboAcademicTitle" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Домашний адрес
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="tfAddress" runat="server" Width="99%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Сведения о работе</strong><table style="border: 1px solid #C0C0C0; width: 100%;">
                        <tr>
                            <td colspan="4">
                                <script type="text/javascript">
//                                    $(document).ready(function () {
//                                        $('select[id$=comboRegion]').live('change', function () {
//                                            $('input[id$=btUpdateLocality]').click();
//                                        });
//                                        $('select[id$=comboLocality]').live('change', function () {
//                                            $('input[id$=btUpdateInstitution]').click();
//                                        });
//                                    });                                                            
                                </script>
                                        <asp:Panel ID="Panel1" runat="server">
                                            <table width="100%">
                                                <tr>
                                                    <td align="right" class="style7" width="0%">
                                                        Учреждение </td>
                                                    <td width="100%">
                                                        <asp:DropDownList ID="comboInstitution" runat="server" Width="100%" 
                                                            ClientIDMode="Static">
                                                        </asp:DropDownList>                                                        
                                                    </td>
                                                    <td width="24px"><a id="openLpuTree" class="tree modal" href="<%=ResolveUrl("~/forms/Editors/InstitutionTreeEdit.aspx")%>" /></td>
                                                    <td width="24px"><a id="openRMRDoctorSearch" class="rmrdoctor modal" href="<%=ResolveUrl("~/forms/Editors/RMRDoctorSearch.aspx")%>" /></td>
                                                </tr>
                                                
                                            </table>
                                            <asp:HiddenField ID="hfSelectLpu" ClientIDMode="Static" runat="server" 
                                                onvaluechanged="hfSelectLpu_ValueChanged" />
                                        </asp:Panel>
                                
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Должность
                            </td>
                            <td>
                                <asp:DropDownList ID="comboJob" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                Должность&nbsp;2
                            </td>
                            <td>
                                <asp:DropDownList ID="comboJob2" runat="server" Width="100%" 
                                    CssClass="nullable">
                                    <asp:ListItem Value="0">нет</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Специальность
                            </td>
                            <td>
                                <asp:DropDownList ID="comboSpec" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                Категория
                            </td>
                            <td>
                                <asp:DropDownList ID="comboClass" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Стаж
                            </td>
                            <td>
                                <asp:TextBox ID="tfExperience" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Настоящая аттестация</strong><table style="border: 1px solid #C0C0C0; width: 100%;">
                        <tr>
                            <td align="right" width="10%">
                                Специальность
                            </td>
                            <td colspan="2">
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="comboSpecNew" runat="server" Width="100%" 
                                                ClientIDMode="Static">
                                            </asp:DropDownList>
                                        </td>
                                        <td width="100px">
                                        <span id="specDate" title="Дата последней аттестации">...</span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="10%">
                                Категория
                            </td>
                            <td align="left" width="50%">
                                <asp:DropDownList ID="comboClassNew" runat="server" Width="100%">
                                </asp:DropDownList>
                            </td>
                            <td width="50%">
                                <asp:DropDownList ID="comboConfirm" runat="server" Width="100%">
                                    <asp:ListItem Selected="True" Value="null"  class="static">- не выбрано -</asp:ListItem>
                                    <asp:ListItem Value="0">Подтвердить</asp:ListItem>
                                    <asp:ListItem Value="1">Присвоить</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="10%">
                                Экспертная&nbsp;группа
                            </td>
                            <td colspan="2">
                                <asp:DropDownList ID="comboExpGroup" runat="server" Width="100%" 
                                    ClientIDMode="Static" CssClass="nullable">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="10%">
                                Результат</td>
                            <td align="left" colspan="2">
                                <asp:DropDownList ID="comboReject" runat="server">
                                    <asp:ListItem Selected="True" Value="null" class="static">- не выбрано -</asp:ListItem>
                                    <asp:ListItem Value="0">Аттестовать</asp:ListItem>
                                    <asp:ListItem Value="1">Отказать</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:Button ID="btnSave" runat="server" Text="Сохранить" OnClick="btnSave_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="Отмена" 
            onclick="btnCancel_Click" style="text-align: center" />
    </asp:Panel>
    </form>
</body>